﻿@model TaskManagement.Models.Project

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Admin.cshtml";
}


@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)


    <div class="editor-label">
        @Html.LabelFor(model => model.Name)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Name, new { @class = "required" })
        @Html.ValidationMessageFor(model => model.Name)
    </div>

    <div class="editor-label">
        ProjectManager
    </div>
    <div class="editor-field">
        @Html.DropDownList("ProjectManagerID", string.Empty)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.CategoryId, "ProjectCategory")
    </div>
    <div class="editor-field">
        @Html.DropDownList("CategoryId", String.Empty)
        @Html.ValidationMessageFor(model => model.CategoryId)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.DateofCreate)
    </div>
    <div class="editor-field">
        @(Html.Kendo().DatePicker()
              .Name("DateofCreate")
              .HtmlAttributes(new { style = "width:220px" }))
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Description)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.Description, new { style = "width:500px;height:120px" })
    </div>

    
    <p>
        <input type="submit" value="Create" />
    </p>
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}